package edu.ynu.se.xiecheng.achitectureclass.dao;

import edu.ynu.se.xiecheng.achitectureclass.common.dao.LogicDAO;
import edu.ynu.se.xiecheng.achitectureclass.entity.Camera;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface CameraDao extends LogicDAO<Camera, Long> {
    List<Camera> findByDeviceSerial(String deviceSerial);
    List<Camera> findByDeviceSerialOrderByCaptureTimeDesc(String deviceSerial);
}